<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="./themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="./themes/icon.css">
    <script type="text/javascript" src="./jquery.min.js"></script>
    <script type="text/javascript" src="./jquery.easyui.min.js"></script>
</head>

<body>

    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'" style="height:100px">


            <div style="margin:20px 0;"></div>
            <div class="easyui-panel" style="padding:5px;">
                <a href="#" class="easyui-linkbutton" data-options="plain:true">首页</a>
                <a href="#" class="easyui-splitbutton" data-options="menu:'#mm1',iconCls:'icon-edit'">编辑</a>
                <a href="#" class="easyui-splitbutton" data-options="menu:'#mm2',iconCls:'icon-ok'">功能模块</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm3',iconCls:'icon-help'">帮助中心</a>
            </div>
            <div id="mm1" style="width:150px;">
                <div data-options="iconCls:'icon-undo'">Undo</div>
                <div data-options="iconCls:'icon-redo'">Redo</div>
                <div class="menu-sep"></div>
                <div>Cut</div>
                <div>Copy</div>
                <div>Paste</div>
                <div class="menu-sep"></div>
                <div>
                    <span>Toolbar</span>
                    <div>
                        <div>Address</div>
                        <div>Link</div>
                        <div>Navigation Toolbar</div>
                        <div>Bookmark Toolbar</div>
                        <div class="menu-sep"></div>
                        <div>New Toolbar...</div>
                    </div>
                </div>
                <div data-options="iconCls:'icon-remove'">Delete</div>
                <div>Select All</div>
            </div>
            <div id="mm2" style="width:100px;">
                <div data-options="iconCls:'icon-ok'">Ok</div>
                <div data-options="iconCls:'icon-cancel'">Cancel</div>
            </div>
            <div id="mm3" style="width:150px;">
                <div>Help</div>
                <div>Update</div>
                <div>
                    <span>About</span>
                    <div class="menu-content" style="padding:10px;text-align:left">
                        <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                        <p style="font-size:14px;color:#444">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
                    </div>
                </div>
            </div>



        </div>
        <div data-options="region:'south',split:true" style="height:50px;">

            <button id="editRow">修改Row</button>


        </div>
        <div data-options="region:'east',split:true" title="East" style="width:100px;"></div>
        <div data-options="region:'west',split:true" title="West" style="width:200px;">

            <ul>
                <li class="myMenu" data-href="./components/user.html">用户模块</li>
                <li class="myMenu" data-href="./components/cate.html">分类模块</li>
                <li class="myMenu" data-href="./components/news.html">新闻模块</li>
                <li class="myMenu" data-href="./components/products.html">产品模块</li>
            </ul>
        </div>
        <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">

            <div id="tt" class="easyui-tabs" data-options="fit:true">
            </div>
        </div>

</body>

</html>

<script>

    $(".myMenu ").click(function () {
        var href = $(this).attr('data-href');
        var title = $(this).text()
        addTab(title, href);
    })

    function addTab(title, href) {

        $('#tt').tabs('add', {
            title: title,
            content: '<iframe frameborder="1" style="width:100%;height:100%" src=' + href + '>',
            closable: true
        });
    }
</script>